package com.example.boot.controller;


import com.example.common.Result;
import com.example.service.IJobsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-07-01
 */
@RestController
@RequestMapping("/jobs")
public class JobsController {

    @Autowired
    private IJobsService jobsService;

    @GetMapping("/all")
    public Result getAll(){
        return Result.success(jobsService.list());
    }

}
